package com.ydw.bean_innit_destrory.java_set;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author ydw
 * @create 2017-07-06 下午3:18
 **/
@Configuration
@ComponentScan("com.ydw.bean_innit_destrory.JSR_250")
public class JavaSetConfig {

    @Bean(initMethod = "innit",destroyMethod = "destrory")
    public JavaSet javaSet(){
        return new JavaSet();
    }
}
